.class public final Llt/noframe/gpsfarmguide/dialogs/FamAppsPromoDialog;
.super Ljava/lang/Object;
.source "FamAppsPromoDialog.kt"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private final getAppsPromo(Landroidx/appcompat/app/AppCompatActivity;)Llt/farmis/libraries/apps_promo/AppsPromo;
    .locals 22

    move-object/from16 v3, p1

    move-object/from16 v1, p1

    .line 59
    new-instance v15, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

    invoke-direct {v15}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;-><init>()V

    .line 60
    invoke-virtual {v15, v3}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->init(Landroid/content/Context;)V

    .line 61
    new-instance v17, Llt/farmis/libraries/apps_promo/AppsPromo;

    move-object/from16 v0, v17

    const v2, 0x7f11018a

    .line 63
    invoke-virtual {v3, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    move-object v2, v4

    const-string v5, "activity.getString(R.string.popup_title)"

    invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f06004e

    .line 64
    invoke-static {v3, v4}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result v3

    const-string v4, "PromoIsSingleAppCampaign"

    .line 65
    invoke-virtual {v15, v4}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getBoolean(Ljava/lang/String;)Z

    move-result v4

    const-string v5, "PromoIsVideoCampaign"

    .line 66
    invoke-virtual {v15, v5}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getBoolean(Ljava/lang/String;)Z

    move-result v5

    const-string v14, ""

    const-string v6, "PromoMainImageUrl"

    .line 67
    invoke-virtual {v15, v6, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    move-object v6, v7

    const-string v8, "mFirebaseRemoteConfig.ge\u2026(\"PromoMainImageUrl\", \"\")"

    invoke-static {v7, v8}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "PromoIconImageUrl"

    .line 68
    invoke-virtual {v15, v7, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    move-object v7, v8

    const-string v9, "mFirebaseRemoteConfig.ge\u2026(\"PromoIconImageUrl\", \"\")"

    invoke-static {v8, v9}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v8, "PromoAppTitle"

    .line 69
    invoke-virtual {v15, v8, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    move-object v8, v9

    const-string v10, "mFirebaseRemoteConfig.ge\u2026ault(\"PromoAppTitle\", \"\")"

    invoke-static {v9, v10}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v9, "PromoAppDescription"

    .line 70
    invoke-virtual {v15, v9, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    move-object v9, v10

    const-string v11, "mFirebaseRemoteConfig.ge\u2026PromoAppDescription\", \"\")"

    invoke-static {v10, v11}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v10, "PromoAppPackageName"

    .line 71
    invoke-virtual {v15, v10, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    move-object v10, v11

    const-string v12, "mFirebaseRemoteConfig.ge\u2026PromoAppPackageName\", \"\")"

    invoke-static {v11, v12}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-wide/16 v12, 0x2

    const-string v11, "PromoTriggerOpenCount"

    move-object/from16 v19, v0

    move-object/from16 v18, v1

    .line 72
    invoke-virtual {v15, v11, v12, v13}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    long-to-int v11, v0

    const-string v0, "PromoTriggerTimeInHours"

    const-wide/16 v12, 0x56

    .line 73
    invoke-virtual {v15, v0, v12, v13}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getLong(Ljava/lang/String;J)J

    move-result-wide v12

    const-wide/16 v0, 0x2

    const-string v0, "PromoVideoId"

    .line 74
    invoke-virtual {v15, v0, v14}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getStringVithDefault(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    move-object v14, v0

    const-string v1, "mFirebaseRemoteConfig.ge\u2026fault(\"PromoVideoId\", \"\")"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "PromoShowCount"

    move-object/from16 v21, v2

    move/from16 p1, v3

    move/from16 v20, v4

    const-wide/16 v1, 0x2

    .line 75
    invoke-virtual {v15, v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getLong(Ljava/lang/String;J)J

    move-result-wide v3

    long-to-int v0, v3

    move-object v3, v15

    move v15, v0

    const-string v0, "PromoCampaignId"

    .line 76
    invoke-virtual {v3, v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    long-to-int v1, v0

    move/from16 v16, v1

    move/from16 v3, p1

    move-object/from16 v1, v18

    move-object/from16 v0, v19

    move/from16 v4, v20

    move-object/from16 v2, v21

    .line 61
    invoke-direct/range {v0 .. v16}, Llt/farmis/libraries/apps_promo/AppsPromo;-><init>(Landroidx/appcompat/app/AppCompatActivity;Ljava/lang/String;IZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IJLjava/lang/String;II)V

    return-object v17
.end method

.method private final getList(Landroid/content/Context;)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Llt/farmis/libraries/apps_promo/models/AppPromoModel;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x6

    .line 80
    new-array v0, v0, [Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    .line 81
    new-instance v1, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v2, 0x7f1100dc

    .line 82
    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "context.getString(R.string.fa_name)"

    invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v3, 0x7f1100db

    .line 83
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.fa_description)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f0e0003

    .line 85
    invoke-static {p1, v4}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    const/4 v5, 0x0

    if-eqz v4, :cond_5

    const-string v6, "ContextCompat.getDrawabl\u2026ext, R.mipmap.fam_logo)!!"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v6, "lt.noframe.fieldsareameasure"

    .line 81
    invoke-direct {v1, v2, v3, v6, v4}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const/4 v1, 0x1

    .line 87
    new-instance v2, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v3, 0x7f11004b

    .line 88
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.ca_name)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f11004a

    .line 89
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v6, "context.getString(R.string.ca_description)"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v6, 0x7f0e0002

    .line 91
    invoke-static {p1, v6}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    if-eqz v6, :cond_4

    const-string v7, "ContextCompat.getDrawabl\u2026, R.mipmap.co_spy_logo)!!"

    invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "lt.farmis.apps.farmismarket"

    .line 87
    invoke-direct {v2, v3, v4, v7, v6}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    aput-object v2, v0, v1

    const/4 v1, 0x2

    .line 93
    new-instance v2, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v3, 0x7f11004d

    .line 94
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.calc_name)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f11004c

    .line 95
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v6, "context.getString(R.string.calc_description)"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v6, 0x7f0e0001

    .line 97
    invoke-static {p1, v6}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    if-eqz v6, :cond_3

    const-string v7, "ContextCompat.getDrawabl\u2026.mipmap.calc_agro_logo)!!"

    invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "lt.farmis.apps.agrocalculator"

    .line 93
    invoke-direct {v2, v3, v4, v7, v6}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    aput-object v2, v0, v1

    const/4 v1, 0x3

    .line 99
    new-instance v2, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v3, 0x7f1101d1

    .line 100
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.ss_name)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f1101d0

    .line 101
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v6, "context.getString(R.string.ss_description)"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v6, 0x7f0e0005

    .line 103
    invoke-static {p1, v6}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    if-eqz v6, :cond_2

    const-string v7, "ContextCompat.getDrawabl\u2026xt, R.mipmap.soil_logo)!!"

    invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "com.noframe.farmissoilsamples"

    .line 99
    invoke-direct {v2, v3, v4, v7, v6}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    aput-object v2, v0, v1

    const/4 v1, 0x4

    .line 105
    new-instance v2, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v3, 0x7f110001

    .line 106
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.ab_name)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const/high16 v4, 0x7f110000

    .line 107
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v6, "context.getString(R.string.ab_description)"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const/high16 v6, 0x7f0e0000

    .line 109
    invoke-static {p1, v6}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    if-eqz v6, :cond_1

    const-string v7, "ContextCompat.getDrawabl\u2026xt, R.mipmap.agro_logo)!!"

    invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v7, "lt.farmis.apps.farmiscatalog"

    .line 105
    invoke-direct {v2, v3, v4, v7, v6}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    aput-object v2, v0, v1

    const/4 v1, 0x5

    .line 111
    new-instance v2, Llt/farmis/libraries/apps_promo/models/AppPromoModel;

    const v3, 0x7f1101b3

    .line 112
    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "context.getString(R.string.sc_name)"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v4, 0x7f1101b2

    .line 113
    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const-string v6, "context.getString(R.string.sc_description)"

    invoke-static {v4, v6}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const v6, 0x7f0e0004

    .line 115
    invoke-static {p1, v6}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    if-eqz p1, :cond_0

    const-string v5, "ContextCompat.getDrawabl\u2026text, R.mipmap.sc_logo)!!"

    invoke-static {p1, v5}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v5, "lt.farmis.apps.sprayercalibrator"

    .line 111
    invoke-direct {v2, v3, v4, v5, p1}, Llt/farmis/libraries/apps_promo/models/AppPromoModel;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)V

    aput-object v2, v0, v1

    .line 80
    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p1

    const-string v0, "Arrays.asList(\n         \u2026              )\n        )"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    return-object p1

    .line 115
    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5

    .line 109
    :cond_1
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5

    .line 103
    :cond_2
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5

    .line 97
    :cond_3
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5

    .line 91
    :cond_4
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5

    .line 85
    :cond_5
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v5
.end method


# virtual methods
.method public final showIf1(Landroidx/appcompat/app/AppCompatActivity;)Z
    .locals 4

    const-string v0, "activity"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 21
    new-instance v0, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;-><init>()V

    .line 22
    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->init(Landroid/content/Context;)V

    .line 23
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/dialogs/FamAppsPromoDialog;->getAppsPromo(Landroidx/appcompat/app/AppCompatActivity;)Llt/farmis/libraries/apps_promo/AppsPromo;

    move-result-object v1

    const-string v2, "apps_promo_description"

    .line 24
    invoke-virtual {v0, v2}, Llt/noframe/gpsfarmguide/utils/FirebaseRemoteConfigFetcher;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    .line 25
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/dialogs/FamAppsPromoDialog;->getList(Landroid/content/Context;)Ljava/util/List;

    move-result-object v2

    new-instance v3, Llt/noframe/gpsfarmguide/dialogs/FamAppsPromoDialog$showIf$1;

    invoke-direct {v3}, Llt/noframe/gpsfarmguide/dialogs/FamAppsPromoDialog$showIf$1;-><init>()V

    invoke-virtual {v1, v2, v0, v3, p1}, Llt/farmis/libraries/apps_promo/AppsPromo;->showIf(Ljava/util/List;ZLlt/farmis/libraries/apps_promo/parent_interfaces/Callbacks;Landroid/content/Context;)Z

    move-result p1

    return p1
.end method
.method public final showIf(Landroidx/appcompat/app/AppCompatActivity;)Z
    .locals 1
    .param p1, "activity"    # Landroid/content/Context;

    .line 82
    const/4 v0, 0x1

    return v0
.end method
